package org.nulldevice.tankshot.entities;

import java.util.ArrayList;

import org.nulldevice.tankshot.ai.AI;

public class EnemyTank extends Tank {

	AI ai;

	public EnemyTank(int posX, int posY, int sizeX, int sizeY, String name,
			String ref, String ref2, AI ai) {
		super(posX, posY, sizeX, sizeY, name, ref, ref2);
		this.ai = ai;
		ai.setOwner(this);
		ai.init();
	}

	public boolean move(double delta) {
		// double oldPosX = realPosX;
		// double oldPosY = realPosY;
		// double oldDrivingAngle = drivingAngle;

		ai.prepareMove();
		//		
		// if (posX == oldPosX && posY == oldPosY && oldDrivingAngle ==
		// drivingAngle) {
		// // nothing changed
		// return false;
		// }
		// recalcBorder=true;
		// return true;
		//
		return super.move(delta);
	}

	public void setEnemyTanks(ArrayList<Tank> enemies) {
		ai.setEnemyTanks(enemies);
	}

}
